// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.core.raknet;

public class RakVoice {
    public static native void RVInit(int frames_per_buffer);

    public static native void RVInitServer(
        boolean enable, int sample_rate, int framePeriod, int complexity, int buffering, float minDistance, float maxDistance, boolean is3D
    );

    public static native void RVDeinit();

    public static native int GetComplexity();

    public static native void SetComplexity(int value);

    public static native void RequestVoiceChannel(long uuid);

    public static native void CloseAllChannels();

    public static native int GetBufferSizeBytes();

    public static native boolean GetServerVOIPEnable();

    public static native int GetSampleRate();

    public static native int GetSendFramePeriod();

    public static native int GetBuffering();

    public static native float GetMinDistance();

    public static native float GetMaxDistance();

    public static native boolean GetIs3D();

    public static native void CloseVoiceChannel(long uuid);

    public static native boolean ReceiveFrame(long var0, byte[] var2);

    public static native void SendFrame(long var0, long var2, byte[] var4, long var5);

    public static native void SetLoopbackMode(boolean mode);

    public static native void SetVoiceBan(long uuid, boolean is_ban);

    public static native void SetChannelsRouting(long var0, boolean var2, int[] var3, short var4);

    public static native boolean GetChannelStatistics(long var0, long[] var2);
}
